
<script type="text/javascript">
//<![CDATA[
var include_dir = '{$current_location}/{$smarty.const.INCLUDE_DIR}';
var scripts_dir = '{$scripts_dir}';
var skin_images_dir = '{$skin_images_dir}';
var current_location = '{$current_location}';
var index_script = '{$index_script}';
var place_name = '{$place_name}';
var mode_name = '{$mode_name}';
var mode = '{$mode}';
var lang_confirm_delete_present = '{$lang.confirm_delete_present}';
var lang_confirm_delete_offer = '{$lang.confirm_delete_offer}';
var lang_confirm_reject_offer = '{$lang.confirm_reject_offer}';
var lang_wrong_data = '{$lang.wrong_data_2}';
var lang_gived = '{$lang.just_presented}';
var lang_error = '{$lang.error}';
var lang_too_many_presents = '{$lang.too_many_presents}';
var lang_moder_approved = '{$lang.moder_approved}';
var lang_moder_cancelled = '{$lang.moder_cancelled}';
var lang_moder_my_cancelled = '{$lang.moder_my_cancelled}';
var lang_unexpected_error = '{$lang.unexpected_error}';
var lang_image_error1 = '{$lang.image_error1}';
var lang_image_error2 = '{$lang.image_error2}';
var lang_image_error3 = '{$lang.image_error3}';
var lang_image_error4 = '{$lang.image_error4}';

var lang_deleting_images = '{$lang.deleting_images}';
var lang_copying_images = '{$lang.copying_images}';
var lang_uploading_images = '{$lang.uploading_images}';


var current_user = '{$current_user}';
var current_lang = '{$smarty.session.language}';
var can_edit = {if $smarty.const.CAN_EDIT}true{else}false{/if};
var loggedin_user = '{$loggedin_user}';

var thumb_width =  {$smarty.const.THUMB_WIDTH};
var thumb_height = {$smarty.const.THUMB_HEIGHT};
var image_handling_file = '{$current_location}/image_upload.php';
var create_thumb = {$smarty.const.CREATE_THUMB};

//]]>
</script>

 
<script type="text/javascript" src="{$scripts_dir}/jq.js"></script>
<script type="text/javascript" src="{$scripts_dir}/jq_plugin.color_animation.js"></script>
<script type="text/javascript" src="{$scripts_dir}/jquery.hint.js"></script>
<script type="text/javascript" src="{$scripts_dir}/jquery.tooltip.js"></script>
<script type="text/javascript" src="{$scripts_dir}/jquery.form.js"></script>

{if $smarty.const.CAN_EDIT}
{*<script type="text/javascript" src="{$scripts_dir}/tiny_mce/tiny_mce.js"></script> *}
{*<script type="text/javascript" src="{$scripts_dir}/nicedit/nicEdit.js"></script>*}

<script type="text/javascript" src="{$scripts_dir}/datepicker/jquery-ui-1.8.16.custom.min.js"></script> 
<script type="text/javascript" src="{$scripts_dir}/datepicker/jquery.ui.datepicker-{$smarty.session.language}.js"></script>
<link type="text/css" rel="stylesheet" href="{$skin_dir}/datepicker.css"   />



<script type="text/javascript" src="{$scripts_dir}/jquery.imgareaselect.min.js"></script>
<script type="text/javascript" src="{$scripts_dir}/jquery.ocupload.js"></script> 
{/if}

<script type="text/javascript" src="{$scripts_dir}/scripts.js"></script> 

{if $smarty.const.ALTERNATIVE_LOGIN}
<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?45"></script>
{literal}
<script type="text/javascript">
  VK.init({apiId: 1882282});
</script>
{/literal}
{/if}
